﻿<%@ Page Title="Cập nhật Nhân viên" Language="C#" MasterPageFile="~/Administration/BackEnd.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="MonkeyShop.Web.Administration.Employees.Edit" %>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Cập nhật Nhân viên</h2>
    <p></p>
    <span class="failureNotification"><asp:Literal ID="lblErrorMessage" runat="server"></asp:Literal></span>
    <div>
        <fieldset>
            <legend>Nhân viên</legend>
            <p>
                <label>Mã NV:</label>
                <asp:TextBox ID="txtCode" runat="server" CssClass="textEntry code"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode" 
                                     CssClass="failureNotification"
                                     ValidationGroup="AddNew">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label>Tên:</label>
                <asp:TextBox ID="txtName" runat="server" CssClass="textEntry name"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName" 
                                     CssClass="failureNotification"
                                     ValidationGroup="AddNew">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label>Username:</label>
                <asp:TextBox ID="txtUserName" runat="server" CssClass="textEntry name"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUserName" 
                                     CssClass="failureNotification"
                                     ValidationGroup="AddNew">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label>Password:</label>
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" CssClass="textEntry name"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPassword" 
                                     CssClass="failureNotification"
                                     ValidationGroup="AddNew">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label>Email:</label>
                <asp:TextBox ID="txtEmailAddress" runat="server" CssClass="textEntry name"></asp:TextBox>                
            </p>
            <p>
                <label>Phone:</label>
                <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="textEntry name"></asp:TextBox>                
            </p>
            <p>
                <label>Mô tả:</label>
                <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" CssClass="textEntry description"></asp:TextBox>
            </p>
            <p>
                <label>Thứ tự:</label>
                <asp:TextBox ID="txtSortOrder" runat="server" CssClass="textEntry sortorder"></asp:TextBox>
            </p>
            <p>
                <label>Ẩn:</label>
                <asp:CheckBox ID="chkHidden" runat="server" />
            </p>
            <p>
                <label>Quyền quản trị:</label>
                <asp:CheckBox ID="chkAdmin" runat="server" />
            </p>
        </fieldset>
    </div>
    <p></p>
    <div>
        <asp:Button ID="btnSave" runat="server" 
            Text="Save" CssClass="submitButton" 
            ValidationGroup="AddNew" onclick="btnSave_Click" />
        <input id="btnCancel" type="button" value="Cancel" class="submitButton" onclick="javascript: window.location = 'List.aspx';" />
    </div>
</asp:Content>
